Sets how fast the Wobble and the Distort of a sprite effect go on this object, from 0 to 400 percent (100 is the effect as you made it; 50 half as fast, 200 twice as fast, 0 stands still where it is). The percent multiplies the Speed of both tracks. It does not change how long a pulse takes or how strong the effect is (sprite_effect_strength does that). Call it from any event, a Step event included. It does nothing when effect is not the effect playing on this object.
Works differently on Game Boy - The Game Boy multiplies the speed of the Wobble and the Distort of the sprite effect by the percent; the bend never jumps when the speed changes.
Works differently on Game Boy Color - The Game Boy Color multiplies the speed of the Wobble and the Distort of the sprite effect by the percent; the bend never jumps when the speed changes.
Works differently on Sega Genesis - The Sega Genesis plays a sprite effect its own way. This version plays the Tint track (the object's colors mixed toward the effect's color, with the effect's timing). A sprite cannot be bent, turned, resized, blocked or faded here, so the Wobble, Distort, Scale, Rotate, Blocks and See-through tracks do not show (the build says which effect has one); use Make a sprite from this effect for those.
On other consoles this differs: see Side by side and How the consoles differ.
sprite_effect_speed(effect, percent)| Name | Type |
|---|---|
effect | overlay |
percent | int |
Nothing.
Sets how fast the Wobble and the Distort of the sprite effect playing on this object go, from 0 to 400 percent. 100 is the effect as you made it; 50 is half as fast, 200 twice as fast, and 0 stands still where it is. The percent multiplies the Speed of both tracks. Call it from any event, a Step event included.
sprite_effect_speed(se_doc_hit, 200);The walker's wobble goes twice as fast.
sprite_effect_strength). A Wobble or Distort whose own Speed is 0 stays still at any percent, and a track whose way of moving is Stands still stays still.sprite_effect_speed_get. A text effect has text_effect_speed.A game that never calls sprite_effect_speed has none of this in its cartridge.
The number is kept with the effect playing on this object: it is 100 whenever the effect is started, and it goes away when the effect ends. A Wobble or Distort with a Speed of 0 stays still whatever the percent. A game that never calls it has none of this in its cartridge.